package com.hmall.common.config;

import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
Feign配置类
 */
@Configuration
@EnableFeignClients(basePackages = "com.hmall.common.feign")
public class FeignConfig {

    @Bean
    public Logger.Level loggerLevel(){
        return Logger.Level.BASIC;
    }

    @Bean
    public MyFeignInterceptor myFeignInterceptor(){
        return new MyFeignInterceptor();
    }

}
